﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="WebApplication4._Default" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>Untitled Page</title>
    <style type="text/css">
        .style1
        {
            width: 144px;
        }
        .screen
        {
            background: #000;
            color: #eee;
            text-align: right;
        }
        table
        {
            background: #999;
            color: #ddd;
            font-weight: bold;
            font-size: 14px;
            border: solid 1px #222;
            margin: 100px auto;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>

    <asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional">
        <ContentTemplate>
            <table style="width:4%; height: 135px;">
                <tr>
                    <td colspan="4">
                        <asp:TextBox ID="TextBox2" runat="server" Width="109px" MaxLength="12" 
                            ReadOnly="True" CssClass="screen">0</asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:Button ID="Button_M" runat="server" Height="25px" 
                            Text="M" Width="25px" onclick="Button_M_Click" />
                    </td>
                    <td>
                        <asp:Button ID="Button_Madd" runat="server" Height="25px" 
                            onclick="Button_Madd_Click" Text="M+" Width="25px" />
                    </td>
                    <td>
                        <asp:Button ID="Button_Msub" runat="server" Height="25px" 
                            onclick="Button_Msub_Click" Text="M-" Width="25px" />
                    </td>
                    <td class="style1">
                        <asp:Button ID="Button_C" runat="server" Height="25px" onclick="Button_C_Click" 
                            Text="C" Width="25px" />
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:Button ID="Button_7" runat="server" Height="25px" onclick="Button_7_Click" 
                            Text="7" Width="25px" />
                    </td>
                    <td>
                        <asp:Button ID="Button_8" runat="server" Height="25px" onclick="Button_8_Click" 
                            Text="8" Width="25px" />
                    </td>
                    <td>
                        <asp:Button ID="Button_9" runat="server" Height="25px" onclick="Button_9_Click" 
                            Text="9" Width="25px" />
                    </td>
                    <td class="style1">
                        <asp:Button ID="Button_add" runat="server" Height="25px" 
                            onclick="Button_add_Click" Text="+" Width="25px" />
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:Button ID="Button_4" runat="server" Height="25px" onclick="Button_4_Click" 
                            Text="4" Width="25px" />
                    </td>
                    <td>
                        <asp:Button ID="Button_5" runat="server" Height="25px" onclick="Button_5_Click" 
                            Text="5" Width="25px" />
                    </td>
                    <td>
                        <asp:Button ID="Button_6" runat="server" Height="25px" onclick="Button_6_Click" 
                            Text="6" Width="25px" />
                    </td>
                    <td class="style1">
                        <asp:Button ID="Button_sub" runat="server" Height="25px" 
                            onclick="Button_sub_Click" Text="-" Width="25px" />
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:Button ID="Button_1" runat="server" Height="25px" onclick="Button_1_Click" 
                            Text="1" Width="25px" />
                    </td>
                    <td>
                        <asp:Button ID="Button_2" runat="server" Height="25px" onclick="Button_2_Click" 
                            Text="2" Width="25px" />
                    </td>
                    <td>
                        <asp:Button ID="Button_3" runat="server" Height="25px" onclick="Button_3_Click" 
                            Text="3" Width="25px" />
                    </td>
                    <td class="style1">
                        <asp:Button ID="Button_mul" runat="server" Height="25px" 
                            onclick="Button_mul_Click" Text="x" Width="25px" />
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:Button ID="Button_0" runat="server" Height="25px" onclick="Button_0_Click" 
                            Text="0" Width="25px" />
                    </td>
                    <td>
                        <asp:Button ID="Button_cham" runat="server" Height="25px" 
                            onclick="Button_cham_Click" Text="." Width="25px" />
                    </td>
                    <td>
                        <asp:Button ID="Button_equal" runat="server" Height="25px" 
                            onclick="Button_equal_Click" Text="=" Width="25px" />
                    </td>
                    <td class="style1">
                        <asp:Button ID="Button_div" runat="server" Height="25px" 
                            onclick="Button_div_Click" Text=":" Width="25px" />
                    </td>
                </tr>
            </table>
        </ContentTemplate>
    </asp:UpdatePanel>
    </form>
</body>
</html>
